package com.hualude.roadsign.model;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "tb_rule_group", schema = "hualude_db", catalog = "")
public class RuleGroupEntity {
    private Integer ruleGroupId;
    private Integer ruleGroupType;
    private String ruleGroupName;
    private String ruleGroupRemarks;
    private String ruleDeviceCount;
    private String ruleCreateTime;
    private Integer ruleGroupOrgId;

    public RuleGroupEntity() {
    }

    public RuleGroupEntity(Integer ruleGroupId, Integer ruleGroupType, String ruleGroupName, String ruleGroupRemarks, String ruleDeviceCount, String ruleCreateTime,Integer ruleGroupOrgId) {
        this.ruleGroupId = ruleGroupId;
        this.ruleGroupType = ruleGroupType;
        this.ruleGroupName = ruleGroupName;
        this.ruleGroupRemarks = ruleGroupRemarks;
        this.ruleDeviceCount = ruleDeviceCount;
        this.ruleCreateTime = ruleCreateTime;
        this.ruleGroupOrgId=ruleGroupOrgId;
    }

    @Id
    @Column(name = "ruleGroupId")
    @GeneratedValue ( strategy = GenerationType.IDENTITY )
    public Integer getRuleGroupId() {
        return ruleGroupId;
    }

    public void setRuleGroupId(Integer ruleGroupId) {
        this.ruleGroupId = ruleGroupId;
    }

    @Basic
    @Column(name = "ruleGroupType")
    public Integer getRuleGroupType() {
        return ruleGroupType;
    }

    public void setRuleGroupType(Integer ruleGroupType) {
        this.ruleGroupType = ruleGroupType;
    }

    @Basic
    @Column(name = "ruleGroupName")
    public String getRuleGroupName() {
        return ruleGroupName;
    }

    public void setRuleGroupName(String ruleGroupName) {
        this.ruleGroupName = ruleGroupName;
    }

    @Basic
    @Column(name = "ruleGroupRemarks")
    public String getRuleGroupRemarks() {
        return ruleGroupRemarks;
    }

    public void setRuleGroupRemarks(String ruleGroupRemarks) {
        this.ruleGroupRemarks = ruleGroupRemarks;
    }

    @Basic
    @Column(name = "ruleDeviceCount")
    public String getRuleDeviceCount() {
        return ruleDeviceCount;
    }

    public void setRuleDeviceCount(String ruleDeviceCount) {
        this.ruleDeviceCount = ruleDeviceCount;
    }

    @Basic
    @Column(name = "ruleCreateTime")
    public String getRuleCreateTime() {
        return ruleCreateTime;
    }

    public void setRuleCreateTime(String ruleCreateTime) {
        this.ruleCreateTime = ruleCreateTime;
    }

    @Basic
    @Column(name = "ruleGroupOrgId")
    public Integer getRuleGroupOrgId() {
        return ruleGroupOrgId;
    }

    public void setRuleGroupOrgId(Integer ruleGroupOrgId) {
        this.ruleGroupOrgId = ruleGroupOrgId;
    }
}
